package com.xc.tjise.TJISE.day08;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import  java.net.MalformedURLException;
public class HtmlTest {
    private static final String HTML = "网址" ;
    public static void main(String[] args) throws IOException {
        URL url = new URL(HTML);
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(url.openStream()));
        String line;
        while ((line= bufferedReader.readLine())!=null){
            if (line.contains("网址"));
            System.out.println(line.substring(line.indexOf("https"),line.length()-1));
        }
    }
}
